Uctronics power source with relay mount
The easiest and currently implemented is to use a designated power supply. We're using one for $25. Below is the schematics for wiring the laser module from the power supply with the ability to turn the laser module's input ON and OFF from the computer using a relay controlled by the DAQ card connection board.
“../../../taste receptors photostim/taste receptors photostim_LED/light source/files/wiring-schematics_laser-module_power-supply_relay.jpg” could not be found.
“../../../taste receptors photostim/taste receptors photostim_LED/light source/files/DAQ-card_DEV3_connection-board_laser-module-relay.jpg” could not be found.
The control wires of the relay are all connected to the NI SCB-68A connector terminal block in turn connected to the NI 6374 DAQ card shown on the right. The red wire is connected to 5V, black to GRD, and the green, control wire, to the line DEV3/port0/line3 (for the the correspondence between different terminals of the SCB-68A and the ports of the DAQ card, see the cheat sheet on the back side of the connector block cover).
I designed a mount for the UCTRONICS power supply (both versions from the Excel file have the same dimensions) and the relay, which can be mounted on a DIN rail using a standard DIN rail mount bracket. The 3D model and files for printing can be found under files\laser_module_power_control_mount . See below images of the implemented solution.